package com.itheima.reflect;

public class Test1Class {
    public static void main(String[] args) throws ClassNotFoundException {
        //获取Class对象的三种方法
        Class c1=Student.class;
        Class c2=Class.forName("com.itheima.reflect.Student");
        Student student = new Student();
        Class c3=student.getClass();

        System.out.println(c1.getName());   //全类名
        System.out.println(c1.getSimpleName()); //简明：Student
        System.out.println(c1==c2); //三个对象是同一个Class对象
        System.out.println(c2==c3);
    }
}
